I am doing a similar thing; I would say that you need to have M3 set 144 AND clear 145; M4 set 145 AND clear 144, and M5 (not M6) clear both. This works for me. Michael Rosenfield
Group: DynoMotion |
Message: 5722 |
From: somethingfree123 |
Date: 10/1/2012 |
Subject: Re: Getting started with tool setup |
I have a KAnalog board. So, I'm using the isolated outputs for these functions.
A related question would be, why use Mach3? What are the benefits of going through the trouble to set all that up instead of using KmotionCNC?
--- In DynoMotion@yahoogroups.com, "tmday7" <brotroy7@...> wrote:
>
> Hello,
> I have only used KmotionCNC very little as i use Mach3, but did you mean to say bit 44 and bit 45 instead of 144 and 145?
>
> Troy
>
> --- In DynoMotion@yahoogroups.com, "somethingfree123" wrote:
> >
> > Hi,
> >
> > I've just started setting up my Kflop. I've been using DeltaTau in the past and might I say how much EASIER and more intuitive this is to setup!! Not to mention the documentation is much more straight forward.
> >
> > Anyways, to the point: I am setting up the M-codes in the Tool Setup and have a question.
> >
> > I set up M3 to set bit 144, M4 to set bit 145 and M6 to reset both.
> >
> > After setting it up I step through the Gcode (See below). Then, I view the outputs in Kmotion hoping to see 144 have a check next to it. But, nothing happens.
> >
> > I am sure it's an easy issue but have been banging my head against it for quite a while tonight.
> >
> > Any help is much appreciated,
> > RB
> >
> > My test Gcode
> > G90 G21
> > M03
> > M04
> > M05
> > M02
> >
>
|
|
Group: DynoMotion |
Message: 5723 |
From: somethingfree123 |
Date: 10/1/2012 |
Subject: Re: Getting started with tool setup |
That's a good call. Thanks for the info. I am still having trouble actually triggering the outputs. Even when I set/clear bits I don't see a check mark show up next to 144 or 145 in the Discrete IO status window.
Thanks,
Ryan
--- In DynoMotion@yahoogroups.com, Michael Rosenfield <mrosenfield@...> wrote:
>
>
> I am doing a similar thing; I would say that you need to have M3 set 144 AND clear 145; M4 set 145 AND clear 144, and M5 (not M6) clear both. This works for me. Michael Rosenfield
> To: DynoMotion@yahoogroups.com
> From: brotroy7@...
> Date: Mon, 1 Oct 2012 02:23:51 +0000
> Subject: [DynoMotion] Re: Getting started with tool setup
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hello,
>
> I have only used KmotionCNC very little as i use Mach3, but did you mean to say bit 44 and bit 45 instead of 144 and 145?
>
>
>
> Troy
>
>
>
> --- In DynoMotion@yahoogroups.com, "somethingfree123" wrote:
>
> >
>
> > Hi,
>
> >
>
> > I've just started setting up my Kflop. I've been using DeltaTau in the past and might I say how much EASIER and more intuitive this is to setup!! Not to mention the documentation is much more straight forward.
>
> >
>
> > Anyways, to the point: I am setting up the M-codes in the Tool Setup and have a question.
>
> >
>
> > I set up M3 to set bit 144, M4 to set bit 145 and M6 to reset both.
>
> >
>
> > After setting it up I step through the Gcode (See below). Then, I view the outputs in Kmotion hoping to see 144 have a check next to it. But, nothing happens.
>
> >
>
> > I am sure it's an easy issue but have been banging my head against it for quite a while tonight.
>
> >
>
> > Any help is much appreciated,
>
> > RB
>
> >
>
> > My test Gcode
>
> > G90 G21
>
> > M03
>
> > M04
>
> > M05
>
> > M02
>
> >
>
|
|
Group: DynoMotion |
Message: 5724 |
From: tmday7 |
Date: 10/1/2012 |
Subject: Re: Getting started with tool setup |
Ahh, ok. :)
I started out using Mach3 at the time i found KFLOP. So it was easier for me to just keep using it and at the time KmotionCNC was not easily customizable. But i believe Brad has something in the works that will make KmotionCNC or WebNC as it was called, just as nice. :)
Thats what iam waiting on.
Keep in mind that Kmotion uses a much better Trajectory Planner than the current Mach3. But as i hear it Mach4 will have a much better planner then Mach3.
Anyhow,
HTH
Troy
--- In DynoMotion@yahoogroups.com, "somethingfree123" <somethingfree123@...> wrote:
>
> I have a KAnalog board. So, I'm using the isolated outputs for these functions.
>
> A related question would be, why use Mach3? What are the benefits of going through the trouble to set all that up instead of using KmotionCNC?
>
> --- In DynoMotion@yahoogroups.com, "tmday7" <brotroy7@> wrote:
> >
> > Hello,
> > I have only used KmotionCNC very little as i use Mach3, but did you mean to say bit 44 and bit 45 instead of 144 and 145?
> >
> > Troy
> >
> > --- In DynoMotion@yahoogroups.com, "somethingfree123" wrote:
> > >
> > > Hi,
> > >
> > > I've just started setting up my Kflop. I've been using DeltaTau in the past and might I say how much EASIER and more intuitive this is to setup!! Not to mention the documentation is much more straight forward.
> > >
> > > Anyways, to the point: I am setting up the M-codes in the Tool Setup and have a question.
> > >
> > > I set up M3 to set bit 144, M4 to set bit 145 and M6 to reset both.
> > >
> > > After setting it up I step through the Gcode (See below). Then, I view the outputs in Kmotion hoping to see 144 have a check next to it. But, nothing happens.
> > >
> > > I am sure it's an easy issue but have been banging my head against it for quite a while tonight.
> > >
> > > Any help is much appreciated,
> > > RB
> > >
> > > My test Gcode
> > > G90 G21
> > > M03
> > > M04
> > > M05
> > > M02
> > >
> >
>
|
|
Group: DynoMotion |
Message: 5726 |
From: Tom Kerekes |
Date: 10/1/2012 |
Subject: Re: Getting started with tool setup |
Hi Ryan, That should work. I just tested it. Maybe post a screen shot of your Tool Setup | M3-M9 screen. Is the Kanalog charge pump LED
on? What Version are you using? Regards TK
From: somethingfree123 <somethingfree123@...> To: DynoMotion@yahoogroups.com Sent: Sunday, September 30, 2012 4:05 PM Subject: [DynoMotion] Getting started with tool setup
Hi,
I've just started setting up my Kflop. I've been using DeltaTau in the past and might I say how much EASIER and more intuitive this is to setup!! Not to mention the documentation is much more straight forward.
Anyways, to the point: I am setting up the M-codes in the Tool Setup and have a question.
I set up M3 to set bit 144, M4 to set bit 145 and M6 to reset both.
After setting it up I step through the Gcode (See below). Then, I view the outputs in Kmotion hoping to see 144 have a check next to it. But, nothing happens.
I am sure it's an easy issue but have been banging my head against it for quite a while tonight.
Any help is much appreciated,
RB
My test Gcode
G90 G21
M03
M04
M05
M02
|
|
Group: DynoMotion |
Message: 5900 |
From: somethingfree123 |
Date: 10/25/2012 |
Subject: Re: Getting started with tool setup |
Ok, I'm back to work on the project. Still can't get M codes to write to outputs. But, I can operate outputs via the buttons.
It should be noted that I don't have any axis set up yet. Not sure if that should matter.
I am able to set the spindle speed with the S # code.
I'm not sure how to attach a picture to my post but my setup looks just like the example except that I am using 144 and 145 for my outputs on Kanalog.
Thanks,
Ryan
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Ryan,
> Â
> That should work. I just tested it. Maybe post a screen shot of your Tool Setup | M3-M9 screen.
> Â
> Is the Kanalog charge pump LED on?
> Â
> What Version are you using?
> Â
> Regards
> TK
>
>
> ________________________________
> From: somethingfree123 <somethingfree123@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, September 30, 2012 4:05 PM
> Subject: [DynoMotion] Getting started with tool setup
>
>
>
> Â
>
> Hi,
>
> I've just started setting up my Kflop. I've been using DeltaTau in the past and might I say how much EASIER and more intuitive this is to setup!! Not to mention the documentation is much more straight forward.
>
> Anyways, to the point: I am setting up the M-codes in the Tool Setup and have a question.
>
> I set up M3 to set bit 144, M4 to set bit 145 and M6 to reset both.
>
> After setting it up I step through the Gcode (See below). Then, I view the outputs in Kmotion hoping to see 144 have a check next to it. But, nothing happens.
>
> I am sure it's an easy issue but have been banging my head against it for quite a while tonight.
>
> Any help is much appreciated,
> RB
>
> My test Gcode
> G90 G21
> M03
> M04
> M05
> M02
>
|
|
Group: DynoMotion |
Message: 5906 |
From: Tom Kerekes |
Date: 10/26/2012 |
Subject: Re: Getting started with tool setup |
Hi Ryan,
You didn't answer my questions. But actually there is a known issue with MCode Bit commands in V4.29 when used by themselves (without any motion) and the Low Pass Coordinated Motion Filtering (KLP in the C Code) enabled.
Please try the latest Test release and see if you still have a problem:
Regards
TK
Group: DynoMotion |
Message: 7885 |
From: mait.reidak |
Date: 7/9/2013 |
Subject: Re: Getting started with tool setup |
Hi,
I have similar problem, didn't want to start a new thread.
I use virtual bits (1025, 1026, 1027) and RS232 to control trough Arduino some external outputs: solid state relays for spindle, flood coolant pump and stepper motors PSU. PSU is currently uncontrolled, just the virtual bit is switched high in init.c .
With User Buttons in KmotionCNC, I am able to control all without problems but codes M3 and M8 are not working.
Version info from console:
KFLOP 4.30 Build 12:02:08 Mar 3 2013
Help - About of KMotion shows 4.30 as well.
Regards,
Mait
|
|
Group: DynoMotion |
Message: 7890 |
From: Tom Kerekes |
Date: 7/9/2013 |
Subject: Re: Getting started with tool setup |
Hi Mait, Buffered IO commands were limited to IO numbers less than 256. Here is a patch that can be applied to test Version 4.31f that should allow numbers to 2047. http://dynomotion.com/Software/Patch/AllowSetBitBuf1024V431f/DSPKFLOP.out http://dynomotion.com/Software/Patch/AllowSetBitBuf1024V431f/KMotionDef.h
http://dynomotion.com/Software/KMotion431f.exe
HTH Regards TK
Group: DynoMotion |
Message: 7894 |
From: mait.reidak |
Date: 7/9/2013 |
Subject: Re: Getting started with tool setup |
Hi,
Thanks a lot, that helped.
Mait
|
|
Group: DynoMotion |
Message: 7896 |
From: mait.reidak |
Date: 7/10/2013 |
Subject: Re: Getting started with tool setup |
Well, helped sort-of.
Now it starts M3 and M8 but stopping is another issue.
So far I have been able to test only a little but I hope it helps to find the problem:
Starting spindle/coolant (M3, M8); making some simple moves (G0, G1) and stopping spindle/coolant (M5, M9) and ending program (M2) - everything works as it should.
But when using drilling cycles, either G81 or G83, after that M5/M9 wont stop spindle/coolant. Toggling proper virtual bits from console or passing commands directly from code (CMD, xxx) still works (so do user buttons).
Mait.
PS: The new hotkey assigment to user buttons is great but using "hardcoded" hotkeys like F5 or Esc - is not that good. Fortunately nothing is broken :)
--- In DynoMotion@yahoogroups.com, "mait.reidak" <mait.reidak@...> wrote:
>
> Hi,
>
>
> Thanks a lot, that helped.
>
>
>
> Mait
>
|
|
Group: DynoMotion |
Message: 7897 |
From: Tom Kerekes |
Date: 7/10/2013 |
Subject: Re: Getting started with tool setup |
Hi Mait,
I can't duplicate the problem. This works ok for me where M3 is configured for bit 1024 and M8 for 1025
M3 M8 G20 G0 X0 Y0 Z0 F12 G81 X4 Y5 Z1.5
R2.8 M5 M9 M2
Please send an example.
Regards TK
Group: DynoMotion |
Message: 7898 |
From: mait.reidak |
Date: 7/10/2013 |
Subject: Re: Getting started with tool setup |
For me, the example you provided, is not switching off neither spindle or coolant.
If I delete the G81 ... line, everything works fine.
Checked the 1025/1026 bits I use, both remain high after M5/M9/M2
I tried to switch back to default configuration (restored the C:\KMotion431f\KMotion\Data directory I replaced when upgrading to 4.31f version), still no effect.
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mait,
>
> I can't duplicate the problem. This works ok for me where M3 is configured for bit 1024 and M8 for 1025
>
>
> M3
> M8
> G20 G0 X0 Y0 Z0 F12
> G81 X4 Y5 Z1.5 R2.8
> M5
> M9
> M2
>
>
> Please send an example.
>
> Regards
> TK
>
|
|
Group: DynoMotion |
Message: 7906 |
From: Tom Kerekes |
Date: 7/10/2013 |
Subject: Re: Getting started with tool setup |
Hi Mait,
I don't know. Maybe I forgot to include something in the patch. Here is a complete Test Version. Please try it. I tested the GCode and it works ok.
http://dynomotion.com/Software/KMotion431g.exe
Regards TK
Group: DynoMotion |
Message: 7908 |
From: mait.reidak |
Date: 7/11/2013 |
Subject: Re: Getting started with tool setup |
Hi,
As far I can tell, this fixed the problem. The sample you provided works as it should.
Thank you.
Regards,
Mait
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mait,
>
> I don't know. Maybe I forgot to include something in the patch. Here is a complete Test Version. Please try it. I tested the GCode and it works ok.
>
>
> http://dynomotion.com/Software/KMotion431g.exe
>
> Regards
> TK
>
|
|
| | | | | | | | | |